package cn.school.student.service;

import cn.school.common.api.CommonPage;
import cn.school.student.entity.ExamPublish;
import cn.school.student.entity.TExamPerformance;
import cn.school.student.entity.vo.ExamPublishParam;
import cn.school.student.entity.vo.ExamPublishVo;
import cn.school.student.entity.vo.ExamTestPassRatioVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface ExamPublishService  extends IService<ExamPublish>    {

    int insert(ExamPublish examPublish);


      CommonPage<ExamPublishVo> queryList(ExamPublishParam examPublishParam);

    List<ExamPublishVo> selectByquesitonsName(String studentId,String publishId);

    Long count(ExamPublishParam examPublishParam);

    /**
     * 撤销发布
     * @param publishId
     * @return
     */
     int cancelPublish(String publishId);

    int correctExamByStudent(List<TExamPerformance> TExamCorrelation);
	
    /**
     * 根据试卷查询每道题目的正确率
     *
     * @author alex
     * @date 2023/4/11 16:28
     * @return
     */
	List<ExamTestPassRatioVo> getQuestionPassRatioByPublishPaper(Long publishId);
}
